package priv.mill.autoScanxml;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import priv.mill.autoScan.test.Person;

@Component
public class CDplay {
	private Logger logger=Logger.getLogger(CDplay.class);
	
	private Person[] names={new Person("zhangsan"),new Person("lisi"),new Person("zhangsan")};
	
	
	

	public Person[] getNames() {
		return names;
	}

	public void setNames(Person[] names) {
		this.names = names;
	}

	@Autowired
	private CD cd;
	
	public void play(){
		logger.debug("播放cd");
		cd.play();
	}
}
